package aom.ju.ss.mode

data class UserInfoMode(
    val code: Int,
    val count: Int,
    val `data`: UserInfoModeData,
    val error_type: Int,
    val msg: String
)

data class UserInfoModeData(
    val member_id: String,
    val creator_status: Int,
    val userl: Int,
    val cut_coupon_num: String,
    val headimgurl: String,
    val jg_name: String,// 激光 name
    var nickname: String,
    val phone: String,
    val shop_id: String,
    var isset_pay_password:String=""//1 是 0 否
) {


    var cut_level: String? = ""
        get() {
            if (field == null) {
                field = "0"
            }
            return field
        }

    var cut_leveltv: String? = ""
        get() {
            when (cut_level) {
                "0" -> {
                    field = "不是砍爷"
                }
                "1" -> {
                    field = "一星砍爷"
                }
                "2" -> {
                    field = "二星砍爷"
                }
                "3" -> {
                    field = "三星砍爷"
                }
                "4" -> {
                    field = "四星砍爷"
                }
                "5" -> {
                    field = "五星砍爷"
                }
                "6" -> {
                    field = "六星砍爷"
                }
                "7" -> {
                    field = "七星砍爷"
                }
                else -> {
                    field = cut_level + "星砍爷"
                }
            }
            return field
        }


    var voucher_money: String? = ""
        get() {
            if (field == null) {
                field = "0.0"
            }
            return field
        }

    var ju_money: String? = ""
        get() {
            if (field == null) {
                field = "0.0"
            }
            return field
        }
    var barter_money: String? = ""
        get() {
            if (field == null) {
                field = "0.0"
            }
            return field
        }

    var money: String? = ""
        get() {
            if (field == null) {
                field = "0.0"
            }
            return field
        }
    var credit: String? = ""
        get() {
            if (field == null) {
                field = "0"
            }
            return field
        }

    var sex: Int? = null
        get() {
            if (field == null) {
                field = -1
            }
            return field
        }

    var birthday: String? = null
        get() {
            if (field == null) {
                field = "设置"
            }
            return field
        }

    var signature: String? = null
        get() {
            if (field == null) {
                field = ""
            }
            return field
        }

}


